<?php

declare(strict_types=1);
/**
 * Third-party RocketMQ Client SDK for Hyperf
 *
 * @contact colisys@duck.com
 * @license MIT
 * @copyright 2025 Colisys
 */

namespace Colisys\Rocketmq\Remoting;

enum RequestCode: int
{
    case SEND_MESSAGE = 10;
    case PULL_MESSAGE = 11;
    case QUERY_MESSAGE = 12;
    case QUERY_BROKER_OFFSET = 13;
    case QUERY_CONSUMER_OFFSET = 14;
    case UPDATE_CONSUMER_OFFSET = 15;
    case UPDATE_AND_CREATE_TOPIC = 17;
    case UPDATE_AND_CREATE_TOPIC_LIST = 18;
    case GET_ALL_TOPIC_CONFIG = 21;
    case GET_TOPIC_CONFIG_LIST = 22;
    case GET_TOPIC_NAME_LIST = 23;
    case UPDATE_BROKER_CONFIG = 25;
    case GET_BROKER_CONFIG = 26;
    case TRIGGER_DELETE_FILES = 27;
    case GET_BROKER_RUNTIME_INFO = 28;
    case SEARCH_OFFSET_BY_TIMESTAMP = 29;
    case GET_MAX_OFFSET = 30;
    case GET_MIN_OFFSET = 31;
    case GET_EARLIEST_MSG_STORETIME = 32;
    case VIEW_MESSAGE_BY_ID = 33;
    case HEART_BEAT = 34;
    case UNREGISTER_CLIENT = 35;
    case CONSUMER_SEND_MSG_BACK = 36;
    case END_TRANSACTION = 37;
    case GET_CONSUMER_LIST_BY_GROUP = 38;
    case CHECK_TRANSACTION_STATE = 39;
    case NOTIFY_CONSUMER_IDS_CHANGED = 40;
    case LOCK_BATCH_MQ = 41;
    case UNLOCK_BATCH_MQ = 42;
    case GET_ALL_CONSUMER_OFFSET = 43;
    case GET_ALL_DELAY_OFFSET = 45;
    case CHECK_CLIENT_CONFIG = 46;
    case GET_CLIENT_CONFIG = 47;
    case GET_TIMER_CHECK_POINT = 60;
    case GET_TIMER_METRICS = 61;
    case POP_MESSAGE = 200050;
    case ACK_MESSAGE = 200051;
    case BATCH_ACK_MESSAGE = 200151;
    case PEEK_MESSAGE = 200052;
    case CHANGE_MESSAGE_INVISIBLETIME = 200053;
    case NOTIFICATION = 200054;
    case POLLING_INFO = 200055;
    case POP_ROLLBACK = 200056;
    case PUT_KV_CONFIG = 100;
    case GET_KV_CONFIG = 101;
    case DELETE_KV_CONFIG = 102;
    case REGISTER_BROKER = 103;
    case UNREGISTER_BROKER = 104;
    case GET_ROUTEINFO_BY_TOPIC = 105;
    case GET_BROKER_CLUSTER_INFO = 106;
    case UPDATE_AND_CREATE_SUBSCRIPTIONGROUP = 200;
    case GET_ALL_SUBSCRIPTIONGROUP_CONFIG = 201;
    case GET_TOPIC_STATS_INFO = 202;
    case GET_CONSUMER_CONNECTION_LIST = 203;
    case GET_PRODUCER_CONNECTION_LIST = 204;
    case WIPE_WRITE_PERM_OF_BROKER = 205;
    case GET_ALL_TOPIC_LIST_FROM_NAMESERVER = 206;
    case DELETE_SUBSCRIPTIONGROUP = 207;
    case GET_CONSUME_STATS = 208;
    case SUSPEND_CONSUMER = 209;
    case RESUME_CONSUMER = 210;
    case RESET_CONSUMER_OFFSET_IN_CONSUMER = 211;
    case RESET_CONSUMER_OFFSET_IN_BROKER = 212;
    case ADJUST_CONSUMER_THREAD_POOL = 213;
    case WHO_CONSUME_THE_MESSAGE = 214;
    case DELETE_TOPIC_IN_BROKER = 215;
    case DELETE_TOPIC_IN_NAMESRV = 216;
    case REGISTER_TOPIC_IN_NAMESRV = 217;
    case GET_KVLIST_BY_NAMESPACE = 219;
    case RESET_CONSUMER_CLIENT_OFFSET = 220;
    case GET_CONSUMER_STATUS_FROM_CLIENT = 221;
    case INVOKE_BROKER_TO_RESET_OFFSET = 222;
    case INVOKE_BROKER_TO_GET_CONSUMER_STATUS = 223;
    case QUERY_TOPIC_CONSUME_BY_WHO = 300;
    case GET_TOPICS_BY_CLUSTER = 224;
    case UPDATE_AND_CREATE_SUBSCRIPTIONGROUP_LIST = 225;
    case QUERY_TOPICS_BY_CONSUMER = 343;
    case QUERY_SUBSCRIPTION_BY_CONSUMER = 345;
    case REGISTER_FILTER_SERVER = 301;
    case REGISTER_MESSAGE_FILTER_CLASS = 302;
    case QUERY_CONSUME_TIME_SPAN = 303;
    case GET_SYSTEM_TOPIC_LIST_FROM_NS = 304;
    case GET_SYSTEM_TOPIC_LIST_FROM_BROKER = 305;
    case CLEAN_EXPIRED_CONSUMEQUEUE = 306;
    case GET_CONSUMER_RUNNING_INFO = 307;
    case QUERY_CORRECTION_OFFSET = 308;
    case CONSUME_MESSAGE_DIRECTLY = 309;
    case SEND_MESSAGE_V2 = 310;
    case GET_UNIT_TOPIC_LIST = 311;
    case GET_HAS_UNIT_SUB_TOPIC_LIST = 312;
    case GET_HAS_UNIT_SUB_UNUNIT_TOPIC_LIST = 313;
    case CLONE_GROUP_OFFSET = 314;
    case VIEW_BROKER_STATS_DATA = 315;
    case CLEAN_UNUSED_TOPIC = 316;
    case GET_BROKER_CONSUME_STATS = 317;
    case UPDATE_NAMESRV_CONFIG = 318;
    case GET_NAMESRV_CONFIG = 319;
    case SEND_BATCH_MESSAGE = 320;
    case QUERY_CONSUME_QUEUE = 321;
    case QUERY_DATA_VERSION = 322;
    case RESUME_CHECK_HALF_MESSAGE = 323;
    case SEND_REPLY_MESSAGE = 324;
    case SEND_REPLY_MESSAGE_V2 = 325;
    case PUSH_REPLY_MESSAGE_TO_CLIENT = 326;
    case ADD_WRITE_PERM_OF_BROKER = 327;
    case GET_ALL_PRODUCER_INFO = 328;
    case DELETE_EXPIRED_COMMITLOG = 329;
    case GET_TOPIC_CONFIG = 351;
    case GET_SUBSCRIPTIONGROUP_CONFIG = 352;
    case UPDATE_AND_GET_GROUP_FORBIDDEN = 353;
    case CHECK_ROCKSDB_CQ_WRITE_PROGRESS = 354;
    case EXPORT_ROCKSDB_CONFIG_TO_JSON = 355;
    case LITE_PULL_MESSAGE = 361;
    case RECALL_MESSAGE = 370;
    case QUERY_ASSIGNMENT = 400;
    case SET_MESSAGE_REQUEST_MODE = 401;
    case GET_ALL_MESSAGE_REQUEST_MODE = 402;
    case UPDATE_AND_CREATE_STATIC_TOPIC = 513;
    case GET_BROKER_MEMBER_GROUP = 901;
    case ADD_BROKER = 902;
    case REMOVE_BROKER = 903;
    case BROKER_HEARTBEAT = 904;
    case NOTIFY_MIN_BROKER_ID_CHANGE = 905;
    case EXCHANGE_BROKER_HA_INFO = 906;
    case GET_BROKER_HA_STATUS = 907;
    case RESET_MASTER_FLUSH_OFFSET = 908;
    case CONTROLLER_ALTER_SYNC_STATE_SET = 1001;
    case CONTROLLER_ELECT_MASTER = 1002;
    case CONTROLLER_REGISTER_BROKER = 1003;
    case CONTROLLER_GET_REPLICA_INFO = 1004;
    case CONTROLLER_GET_METADATA_INFO = 1005;
    case CONTROLLER_GET_SYNC_STATE_DATA = 1006;
    case GET_BROKER_EPOCH_CACHE = 1007;
    case NOTIFY_BROKER_ROLE_CHANGED = 1008;
    case UPDATE_CONTROLLER_CONFIG = 1009;
    case GET_CONTROLLER_CONFIG = 1010;
    case CLEAN_BROKER_DATA = 1011;
    case CONTROLLER_GET_NEXT_BROKER_ID = 1012;
    case CONTROLLER_APPLY_BROKER_ID = 1013;
    case BROKER_CLOSE_CHANNEL_REQUEST = 1014;
    case CHECK_NOT_ACTIVE_BROKER_REQUEST = 1015;
    case GET_BROKER_LIVE_INFO_REQUEST = 1016;
    case GET_SYNC_STATE_DATA_REQUEST = 1017;
    case RAFT_BROKER_HEART_BEAT_EVENT_REQUEST = 1018;
    case UPDATE_COLD_DATA_FLOW_CTR_CONFIG = 2001;
    case REMOVE_COLD_DATA_FLOW_CTR_CONFIG = 2002;
    case GET_COLD_DATA_FLOW_CTR_INFO = 2003;
    case SET_COMMITLOG_READ_MODE = 2004;
    case AUTH_CREATE_USER = 3001;
    case AUTH_UPDATE_USER = 3002;
    case AUTH_DELETE_USER = 3003;
    case AUTH_GET_USER = 3004;
    case AUTH_LIST_USER = 3005;
    case AUTH_CREATE_ACL = 3006;
    case AUTH_UPDATE_ACL = 3007;
    case AUTH_DELETE_ACL = 3008;
    case AUTH_GET_ACL = 3009;
    case AUTH_LIST_ACL = 3010;
}
